package com.hxy.subject.domain.convert;

import com.hxy.subject.domain.entity.SubjectCategoryBO;
import com.hxy.subject.infra.basic.entity.SubjectCategory;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author haoxuyang
 * @Date 2024/9/2 18:46
 */
@Mapper
public interface SubjectCategoryConverter {
    SubjectCategoryConverter INSTANCE = Mappers.getMapper(SubjectCategoryConverter.class);

    SubjectCategory subjectCategoryBoToCategory(SubjectCategoryBO bo);
    List<SubjectCategoryBO> subjectCategoryToBoList(List<SubjectCategory> list);
}
